package com.liu.sunnyday.service;

import com.github.pagehelper.PageInfo;
import com.liu.sunnyday.entity.QueryPageBean;
import com.liu.sunnyday.exception.SunnydayException;
import com.liu.sunnyday.pojo.CheckGroup;
import com.liu.sunnyday.pojo.CheckItem;

import java.util.List;

/**
 * chance！Time
 *
 * @author liuqian
 * @date 2022-06-12 18:13
 * *
 */
public interface CheckgroupService {

    //1-分页查询所有
    PageInfo<CheckGroup> findPage(QueryPageBean queryPageBean);
    //2-新增检查组
    void add(CheckGroup checkGroup, Integer[] checkitemIds);

    //3-编辑---查询检查组数据回显
    CheckGroup findById(Integer id);
    //3-编辑检查组---根据检查组id查询检查项ids回显复选框
    List<Integer> findByCheckID(Integer id);

    //4-编辑检查组--确定提交表单
    void update(CheckGroup checkGroup, Integer[] checkitemIds);
    //5-删除检查组
    void deleteById(Integer id) throws SunnydayException;
}
